
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>修改密码</title>
<link href="../easyui/css/bootstrap.css?v=202003150000" rel="stylesheet"
	type="text/css">
<link href="../easyui/css/easyui.css?v=202003150000" rel="stylesheet"
	type="text/css">
<link href="../easyui/css/color.css?v=202003150000" rel="stylesheet"
	type="text/css">
<link href="../easyui/css/font-awesome.min.css?v=202003150000"
	rel="stylesheet" type="text/css">
<link
	href="../easyui/css/glyphicons-halflings-regular.woff?v=202003150000"
	rel="stylesheet" >
<link
	href="../easyui/css/glyphicons-halflings-regular.ttf?v=202003150000"
	rel="stylesheet">
<link href="../easyui/css/index.css?v=202003150000" rel="stylesheet"
	type="text/css">
<link href="../easyui/css/shippingtool.main.css?v=202003150000"
	rel="stylesheet" type="text/css">
<link href="../easyui/css/easyui.css" type="text/css" rel="stylesheet" />
<script src="../easyui/js/jquery-1.11.2.js" type="text/javascript"></script>
<script src="../easyui/js/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../easyui/js/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../easyui/js/jquery.shippingtool.extend.validate.js"
	type="text/javascript"></script>
<script src="../easyui/js/jquery.shippingtool.plugin.js"
	type="text/javascript"></script>
</head>


<body>

	<div id="showPanel">
		<div class="attrs">
		</div>
		<div class="title mt_10 fg_white">
			<div class="attr-blue">
				<div id="searchDiv" class="right mr_10">
					<input class="easyui-searchbox" id="searchValue"
						data-options="prompt:'支持模糊查找评论内容',searcher:doSearch"
						style="width: 220px" />
				</div>
			</div>
		</div>
		<div class="border">
			<table id="noticeListTable" class="ld-auto-height w_100"></table>
		</div>
	</div>

	<div id="conditionWindow" closed="true" closable="true"
		collapsible="false" resizable="false" minimizable="false"
		maximizable="false" modal="true"></div>

	<script>
		var pageSize = [[${env.resolveString('${pageSize}')}]];
		
		$(function() {
			loadNoticeListTable();
		});

		function selectType(value) {
			noticeType = value;
			loadNoticeListTable();
		}

		function loadNoticeListTable() {
			$('#noticeListTable')
					.datagrid(
							{
								striped : true,
								url : "/houtai/comment/manage/commentList",
								singleSelect : true,
								collapsible : true,
								method : 'post',
								loadMsg : 'loading...',
								fitColumns : true,
								striped : true,
								border : false,
								pagination : true,//分页控件
								pageSize:parseInt(pageSize),
								pageList : [ parseInt(pageSize),
										parseInt(pageSize) * 2,
										parseInt(pageSize) * 4 ],
								columns : [ [
										{
											field : 'noticeid',
											title : 'noticeId',
											hidden : true
										},
										{
											field : 'oid',
											title : '订单编号',
											width : 100,
											align : 'center',
										},
										{
											field : 'content',
											title : '评论内容',
											width : 100,
											align : 'center'
										},
										{
											field : 'createTime',
											title : '评论时间',
											width : 100,
											align : 'center',
										},
										{
											field : 'reply',
											title : '商家回复内容',
											width : 200,
											align : 'center'
										},
										{
											field : 'replyTime',
											title : '回复时间',
											width : 100,
											align : 'center'
										},
										
										{
											field : 'operator',
											title : '操作',
											width : 30,
											align : 'center',
											formatter : function(value, row,
													index) {
												var noticeid = row.noticeid;
												var json = [
														{
															"context" : "编辑",
															"methodName" : "editNotice",
															"param" : noticeid,
															"group" : "1",
															"enable" : true
														},
														{
															"context" : "删除",
															"methodName" : "deleteNotice",
															"param" : noticeid,
															"group" : "1",
															"enable" : true
														} ];
												return jQuery
														.st_operation_btn({
															width : 100,
															data : json
														});
											}
										} ] ],
								onLoadSuccess : function() {
									jQuery.st_operation_btn_register();
								}
							});
		}
		function doSearch() {
			var value = $("#searchValue").val();
			condition = value.trim();
			loadNoticeListTable();
		}


		
	</script>


</body>
</html>
